package com.bdqn.carrental.service;

import com.bdqn.carrental.pojo.UserEntity;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@MapperScan("com.bdqn.carrental.dao")
public interface UserService
{
    /**
     * 查询全部信息
     * @return
     */
    public List<UserEntity> findAll(String userName);
    public  UserEntity Username(String username);
    /**
     * 新增员工
     * @param userEntity
     * @return
     */
    public int saveuser(UserEntity userEntity);

    /*
    删除员工
     */
    public  int deluser(String username);

    /**
     * 修改员工信息
     * @param userEntity
     * @return
     */
    public  int upduser(UserEntity userEntity);
}
